/**
 * @author :Hong  22-2-8
 * 功能描述:环境变量
 */
object AppConfig {
    //版本号
    const val versionName = "1.0.0"
    const val versionCode = 23

    //AppID
    const val applicationId = "com.base.hong"

    //SDK版本
    const val compileSdkVersion = 32
    const val targetSdkVersion = 32
    const val minSdkVersion = 21

    //签名文件
    const val storePassword = "olipay2022"
    const val keyAlias = "olipay"
    const val storeFile = "../olipay.jks"

}

object Version {
    const val gradleVersion = "7.0.3"
    const val kotlinGradleVersion = "1.6.10"
    const val ktxVersion = "1.7.0"

    const val lifecycle = "2.5.1"
    const val appcompatVersion = "1.5.1"
    const val materialVersion = "1.7.0"
    const val constraintlayoutVersion = "2.1.4"

    const val junitVersion = "4.13.2"
    const val extUnitVersion = "1.1.4"
    const val espressoVersion = "3.5.0"

    //https://github.com/Kotlin/kotlinx.coroutines
    const val coroutinesVersion = "1.6.4"

    //http://jcenter.bintray.com/com/squareup/okhttp3/logging-interceptor/
    const val okhttp3LogVersion = "4.9.1"
    const val loggerVersion = "2.2.0"
    const val retrofitVersion = "2.9.0"
}


object Deps {
    const val buildGradle = "com.android.tools.build:gradle:${Version.gradleVersion}"
    const val kotlinGradlePlugin =
        "org.jetbrains.kotlin:kotlin-gradle-plugin:${Version.kotlinGradleVersion}"
    const val kotlinStdlib =
        "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${Version.kotlinGradleVersion}"

    const val appcompat = "androidx.appcompat:appcompat:${Version.appcompatVersion}"
    const val constraintlayout =
        "androidx.constraintlayout:constraintlayout:${Version.constraintlayoutVersion}"
    const val material = "com.google.android.material:material:${Version.materialVersion}"
    const val ktx = "androidx.core:core-ktx:${Version.ktxVersion}"
    const val viewModel = "androidx.lifecycle:lifecycle-viewmodel-ktx:${Version.lifecycle}"
    const val liveData = "androidx.lifecycle:lifecycle-livedata-ktx:${Version.lifecycle}"

    const val fragmentKtx = "androidx.fragment:fragment-ktx:1.3.4"
    const val activityKtx = "androidx.activity:activity-ktx:1.2.3"
    const val extUnit = "androidx.test.ext:junit:${Version.extUnitVersion}"
    const val espresso = "androidx.test.espresso:espresso-core:${Version.espressoVersion}"
    const val junit = "junit:junit:${Version.junitVersion}"

    //https://github.com/square/retrofit
    const val retrofit = "com.squareup.retrofit2:retrofit:${Version.retrofitVersion}"
    const val converterGson = "com.squareup.retrofit2:converter-gson:${Version.retrofitVersion}"
    const val converterSaclars =
        "com.squareup.retrofit2:converter-scalars:${Version.retrofitVersion}"
    const val okhttp3Log = "com.squareup.okhttp3:logging-interceptor:${Version.okhttp3LogVersion}"

    //https://github.com/google/gson
    const val gson = "com.google.code.gson:gson:2.10"

    //https://github.com/Kotlin/kotlinx.coroutines
    const val coroutinesAndroid =
        "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Version.coroutinesVersion}"


    // 日志工具 https://github.com/orhanobut/logger
    const val logger = "com.orhanobut:logger:${Version.loggerVersion}"

    //https://github.com/kirich1409/ViewBindingPropertyDelegate
    const val viewBinding = "com.github.kirich1409:viewbindingpropertydelegate:1.4.7"


    //下拉刷新 https://github.com/scwang90/SmartRefreshLayout
    const val refresh_kernel = "io.github.scwang90:refresh-layout-kernel:2.0.5"
    const val refresh_material = "io.github.scwang90:refresh-header-material:2.0.5"
    const val refresh_classics = "io.github.scwang90:refresh-footer-classics:2.0.5"

    //https://github.com/Tencent/MMKV
    const val tencentMmkv = "com.tencent:mmkv:1.2.12"

    // 吐司框架：https://github.com/getActivity/ToastUtils
    const val toastUtils = "com.github.getActivity:ToastUtils:10.3"

    // 权限请求框架：https://github.com/getActivity/XXPermissions
    const val XXPermissions = "com.github.getActivity:XXPermissions:16.0"

    // multidex
    const val multidex = "androidx.multidex:multidex:2.0.1"

    //沉浸式状态栏 https://github.com/gyf-dev/ImmersionBar
    const val immersionbar = "com.geyifeng.immersionbar:immersionbar:3.2.2"
    const val immersionbarKtx = "com.geyifeng.immersionbar:immersionbar-ktx:3.2.2"

    // 加载反馈页管理框架 https://github.com/KingJA/LoadSir
    const val loadsir = "com.kingja.loadsir:loadsir:1.3.8"

    // https://github.com/CymChad/BaseRecyclerViewAdapterHelper/blob/master/readme/0-BaseRecyclerViewAdapterHelper.md
    const val BaseRecyclerViewAdapterHelper =
        "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.7"

    // 内存泄漏检测工具 https://square.github.io/leakcanary/getting_started/
    const val leakcanary = "com.squareup.leakcanary:leakcanary-android:2.10"

    //图片加载 https://github.com/coil-kt/coil/blob/main/README-zh.md
    const val coil = "io.coil-kt:coil:2.2.2"
    const val coilGif = "io.coil-kt:coil-gif:2.2.2"

    //AndroidX 版本 https://github.com/jenly1314/ZXingLite
    const val zxingLite = "com.github.jenly1314:zxing-lite:2.2.1"

    // Shape 框架：https://github.com/getActivity/ShapeView
    const val ShapeView = "com.github.getActivity:ShapeView:8.5"

    //AgentWeb https://github.com/Justson/AgentWeb
    const val AgentWebCode = "com.github.Justson.AgentWeb:agentweb-core:v5.0.6-androidx"// (必选)
    const val AgentWebFileChooser =
        "com.github.Justson.AgentWeb:agentweb-filechooser:v5.0.6-androidx"// (可选)
    const val AgentWebDownloader = "com.github.Justson:Downloader:v5.0.4-androidx"// (可选)

    //androidX 轮播图 https://github.com/xiaohaibin/XBanner
    const val XBanner = "com.github.xiaohaibin:XBanner:androidx_v1.2.3"
}

